Skip to main content

ServiceRunner<TRequest>

Assembly: ServiceStack.dll
View Source
Declaration
public class ServiceRunner<TRequest> : IServiceRunner<TRequest>, IServiceRunner

Fields

Log

View Source
Declaration
protected static readonly ILog Log

AppHost

View Source
Declaration
protected readonly IAppHost AppHost

ActionContext

View Source
Declaration
protected readonly ActionContext ActionContext

ServiceAction

View Source
Declaration
protected readonly ActionInvokerFn ServiceAction

RequestFilters

View Source
Declaration
protected readonly IRequestFilterBase[] RequestFilters

ResponseFilters

View Source
Declaration
protected readonly IResponseFilterBase[] ResponseFilters

Methods

ResolveService<T>(IRequest)

View Source
Declaration
public T ResolveService<T>(IRequest requestContext)
Returns

<T>

Parameters
TypeName
ServiceStack.Web.IRequestrequestContext
Type Parameters
  • T

BeforeEachRequest(IRequest, TRequest, Object)

View Source
Declaration
public virtual void BeforeEachRequest(IRequest req, TRequest request, object service)
Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>request
System.Objectservice

AfterEachRequest(IRequest, TRequest, Object, Object)

View Source
Declaration
public virtual object AfterEachRequest(IRequest req, TRequest request, object response, object service)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>request
System.Objectresponse
System.Objectservice

OnBeforeExecute(IRequest, TRequest)

View Source
Declaration
[Obsolete("Use OnBeforeExecute(req, requestDto, service)")]
public virtual void OnBeforeExecute(IRequest req, TRequest request)
Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>request

OnBeforeExecute(IRequest, TRequest, Object)

View Source
Declaration
public virtual void OnBeforeExecute(IRequest req, TRequest request, object service)
Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>request
System.Objectservice

OnAfterExecute(IRequest, Object)

View Source
Declaration
[Obsolete("Use OnAfterExecute(req, requestDto, service)")]
public virtual object OnAfterExecute(IRequest req, object response)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectresponse

OnAfterExecute(IRequest, Object, Object)

View Source
Declaration
public virtual object OnAfterExecute(IRequest req, object response, object service)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectresponse
System.Objectservice

Execute(IRequest, Object, TRequest)

View Source
Declaration
[Obsolete("Override ExecuteAsync instead")]
public virtual object Execute(IRequest req, object instance, TRequest requestDto)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
<TRequest>requestDto

ExecuteAsync(IRequest, Object, TRequest)

View Source
Declaration
public virtual async Task<object> ExecuteAsync(IRequest req, object instance, TRequest requestDto)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
<TRequest>requestDto

Execute(IRequest, Object, IMessage<TRequest>)

View Source
Declaration
public virtual object Execute(IRequest req, object instance, IMessage<TRequest> request)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
ServiceStack.Messaging.IMessage<T>request

HandleExceptionAsync(IRequest, TRequest, Exception)

View Source
Declaration
[Obsolete("Use HandleExceptionAsync(req, requestDto, ex, service)")]
public virtual Task<object> HandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>requestDto
System.Exceptionex

ManagedHandleExceptionAsync(IRequest, TRequest, Exception, Object)

View Source
Declaration
protected async Task<object> ManagedHandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex, object service)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>requestDto
System.Exceptionex
System.Objectservice

HandleExceptionAsync(IRequest, TRequest, Exception, Object)

View Source
Declaration
public virtual async Task<object> HandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex, object service)
Returns

System.Threading.Tasks.Task<System.Object>

Parameters
TypeName
ServiceStack.Web.IRequestreq
<TRequest>requestDto
System.Exceptionex
System.Objectservice

ExecuteOneWay(IRequest, Object, TRequest)

View Source
Declaration
public object ExecuteOneWay(IRequest req, object instance, TRequest requestDto)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectinstance
<TRequest>requestDto

Process(IRequest, Object, Object)

View Source
Declaration
public object Process(IRequest requestContext, object instance, object request)
Returns

System.Object

Parameters
TypeName
ServiceStack.Web.IRequestrequestContext
System.Objectinstance
System.Objectrequest

Implements